//必须带done回调 执行完成调用
export default function clickSelectRow({ vm, action, additionalData, done }) {
  // console.log('bbfpl', action, additionalData, done)
  let tableIds = action.extension.tableId.value
  tableIds.forEach((tableId) => {
    if (tableId) {
      let _table = vm.vuiComponents[tableId]
      if (_table) {
        _table.self.setCheckboxRow(additionalData.row || additionalData.data, true)
      } else {
        console.log('默认选中表格数据-没有找到表格')
      }
    }
  })
  setTimeout(() => {
    done(null, {})
  }, 20)
}
